import request from '@/utils/request'

export default {
// 根据日期 - 生成统计记录
  createStatistics(day) {
    return request({
      url: `/admin/statistics/daily/create/${day}`,
      method: 'post'
    })
  },
  // 前端显示图表
  showChart(searchObj) {
    return request({
      url: `/admin/statistics/daily/show-chart/${searchObj.begin}/${searchObj.end}`,
      method: 'get'
    })
  }
}
